package com.xja.ssm.service.impl;

import com.xja.ssm.entity.House;
import com.xja.ssm.mapper.HouseMapper;
import com.xja.ssm.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("adminService")
public class AdminServiceImpl implements AdminService {

    @Autowired
    private HouseMapper houseMapper;


    public void addHouse(House house) throws Exception {
        houseMapper.insertSelective(house);
    }

    public List<House> selectHouseList() throws Exception {
        return houseMapper.selectHouseList();
    }
}
